<template>
    <div>

      <el-button type="primary" round @click="add()">添加</el-button>
          <v-list @dit="dit"></v-list>
          <v-add :obj="obj" ref="aa"></v-add>
    
    </div>
</template>
<script>
import vList from './components/list.vue'
import vAdd from './components/add.vue'
export default {
    data() {
        return {
           obj:{
               isTrue:false,
               isAdd:false
           }
            
        }
    },
    components:{
        vList,
        vAdd
    },
    methods: {
        add(){
            this.obj.isTrue=true,
            this.obj.isAdd=false
        },
        dit(id){
            this.obj.isTrue=true,
            this.obj.isAdd=true,
            this.$refs.aa.getone(id)
        }
    },
    mounted(){

    }

}
</script>

<style>


</style>